package com.bb;

import java.math.BigDecimal;
import java.util.List;

public class Goods {
    private String goodsName;
    private String goodsCode;
    List<Sku> skuList;

    @Override
    public String toString() {
        return "Goods{" +
                "goodsName='" + goodsName + '\'' +
                ", goodsCode='" + goodsCode + '\'' +
                ", skuList=" + skuList +
                '}';
    }

    public static class Sku {
        private String skuCode;
        private BigDecimal price;

        public Sku(String skuCode, BigDecimal price) {
            this.skuCode = skuCode;
            this.price = price;
        }

        public String getSkuCode() {
            return skuCode;
        }

        public void setSkuCode(String skuCode) {
            this.skuCode = skuCode;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        @Override
        public String toString() {
            return "Sku{" +
                    "skuCode='" + skuCode + '\'' +
                    ", price=" + price +
                    '}';
        }
    }

    public Goods(String goodsName, String goodsCode, List<Sku> skuList) {
        this.goodsName = goodsName;
        this.goodsCode = goodsCode;
        this.skuList = skuList;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public List<Sku> getSkuList() {
        return skuList;
    }

    public void setSkuList(List<Sku> skuList) {
        this.skuList = skuList;
    }
}
